﻿using System;
using System.Collections.Generic;
using IkeCode.WP7.Wakeup.AppModel.Model;
using IkeCode.WP7.Wakeup.Service;
using IkeCode.WP7.Wakeup.AppResources.Dictionaries;

namespace IkeCode.WP7.Wakeup.Design
{
    public class DesignDataService : IDataService
    {
        public void GetMainData(Action<MainModel, Exception> callback)
        {
            // Use this to create design time data

            var item = new MainModel();
            item.CurrentDaysText = AppDictionary.SelectDays;
            callback(item, null);
        }

        public void GetRingtones(Action<List<RingtoneModel>, Exception> callback)
        {
            // Use this to connect to the actual data service
            var item = new RingtoneModel();
            item.Id = 1;
            item.Name = "ringtone1";

            var item2 = new RingtoneModel();
            item.Id = 2;
            item.Name = "ringtone2";

            var item3 = new RingtoneModel();
            item.Id = 3;
            item.Name = "ringtone3";

            var item4 = new RingtoneModel();
            item.Id = 4;
            item.Name = "ringtone4";

            var item5 = new RingtoneModel();
            item.Id = 5;
            item.Name = "ringtone5";

            var item6 = new RingtoneModel();
            item.Id = 6;
            item.Name = "ringtone6";

            var items = new List<RingtoneModel> { item, item2, item3, item4, item5, item6 };
            callback(items, null);
        }
    }
}